import Vue from 'vue'
import App from './App'
Vue.prototype.$eventHub = new Vue();

Vue.config.productionTip = false
Vue.prototype.websiteUrl = 'http://api.yjzufang.com'
Vue.prototype.checkLogin = function(){	
	var token = uni.getStorageSync('token');
	//var SUID  = uni.getStorageSync('SUID');
	//var SRAND = uni.getStorageSync('SRAND');
	//var SNAME = uni.getStorageSync('SNAME');
	//var SFACE = uni.getStorageSync('SFACE');
	if(token == ''){
		uni.reLaunch({
			url:'/pages/login/login',
		});		
	}
	return token;
}

App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
